package com.ruoyi.system.domain.material;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * @author GE-LV5
 * @create 2023/3/6 14:23
 * 自定义类型属性表
 */
@Data
//@ToString
//@EqualsAndHashCode
//@NoArgsConstructor
//@Accessors(chain = true)
@TableName("material_property_type")
@ApiModel(description = "自定义类型属性表")
public class MaterialPropertyType  implements Serializable {

    @TableId(value = "id")
    @Excel(name = "序号")
    private Long id;


    @ApiModelProperty(value = "属性编码")
    @Excel(name = "属性编码")
    private String propertyCode;

    @ApiModelProperty(value = "属性名称 ")
    @Excel(name = "属性名称 ")
    private String propertyName;


    @ApiModelProperty(value = "物料类型描述")
    @Excel(name = "物料类型描述")
    private String dataType;


    @ApiModelProperty(value = "默认值")
    @Excel(name = "默认值")
    private String tolerant;


    @ApiModelProperty(value = "是否为常量 0否 1是")
    @Excel(name = "是否为常量")
    private String isConstant;

    @ApiModelProperty(value = "绑定物料的id")
    private Long materialPropertyId;
}
